<div id="icon-edit" class="icon32 icon32-posts-post"><br></div>
<h2>所有需求</h2>
<table id="report_table" cellspacing="0" class="wp-list-table widefat fixed posts">
    <tbody>
    <?php
    foreach ($data as $i => $row): ?>
    <tr <?php echo $i%2==0? 'class="alt"': ''?>>
        <td><?php echo h($row['Feedback']['id']); ?>&nbsp;</td>
        <td><?php echo h($row['Feedback']['name']); ?></td>
        <td><?php echo h($row['Feedback']['phone']); ?></td>
        <td><?php echo h($row['Feedback']['company']); ?></td>
        <td><?php echo h($row['Feedback']['company_website']); ?></td>
        <td><?php echo h($row['Feedback']['description']); ?></td>
        <td><?php if ($row['Feedback']['is_read']==0) {echo "<font color='red'>否</font>";} else {echo "是";}?></td>
        <td><?php echo date('Y-m-d H:i:s', $row['Feedback']['created']); ?>&nbsp;</td>
        <td class="actions">
            <?php echo $this->Form->postLink(__('Make as read'), array('action' => 'read', $row['Feedback']['id']), null, __('Are you sure you want to make it as read # %s?', $row['Feedback']['id'])); ?>
        </td>
    </tr>
<?php endforeach; ?>
    </tbody>
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th>名称</th>
            <th>电话</th>
            <th>公司</th>
            <th>公司网站</th>
            <th>需求描述</th>
            <th>是否已读</th>
            <th><?php echo $this->Paginator->sort('created', '创建时间'); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
    </thead>
    <tfoot>
        <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th>案例</th>
            <th>服务</th>
            <th>公司</th>
            <th>公司网站</th>
            <th>需求描述</th>
            <th>是否已读</th>
            <th><?php echo $this->Paginator->sort('created', '创建时间'); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
    </tfoot>
</table>
<?php echo $this->Paginator->numbers()?>
